package com.woniuxy.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.dto.CarYearlyInspectionDto;
import com.woniuxy.entity.CarYearlyInspection;

import java.util.List;
import java.util.Map;

public interface CarYearlyInspectionService {
    /**
     * 条件查询分页查询所有
     */
    PageInfo<CarYearlyInspectionDto> findByPage(Map<String,Object> condition, int pageNum, int pageSize);

    /**
     * 添加
     */
    int save(CarYearlyInspection carYearlyInspection);

    /**
     * 修改
     */
    int updateById(CarYearlyInspection carYearlyInspection);
    /**
     * 删除
     */
    int deleteById(Integer id);
    /**
     * 批量删除
     */
    int deleteBatch(String[] ids);
    /**
     * 批量添加数据
     */
    int insertBatch(List<CarYearlyInspectionDto> carYearlyInspectionList);
    /**
     * 导出所有数据Excel
     */
    List<CarYearlyInspectionDto> findAll();
}
